//
//  AboutUsViewController.m
//  Daybook
//
//  Created by dllo on 16/6/6.
//  Copyright © 2016年 zhangbin. All rights reserved.
//

#import "AboutUsViewController.h"
#import "Common.h"

@interface AboutUsViewController ()

@end

@implementation AboutUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [self createView];
    
}

- (void)createView {
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    UIButton *backButton = [UIButton buttonWithType:UIButtonTypeCustom];
    backButton.frame = CGRectMake(10, 34, 25, 25);
    [self.view addSubview:backButton];
    backButton.backgroundColor = [UIColor clearColor];
    
    [backButton setImage:[UIImage imageNamed:@"backArrow"] forState:UIControlStateNormal];
    [backButton addTarget:self action:@selector(clickBack:) forControlEvents:UIControlEventTouchUpInside];
    
    
    UILabel *nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(MAIN_WIDTH / 2 - 40, 34, 80, 25)];
    nameLabel.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:nameLabel];
    nameLabel.text = @"关于我们";
    
    
    
    UIImageView *appImageView = [[UIImageView alloc]initWithFrame:CGRectMake(100, 100, 200, 200)];
    appImageView.center = CGPointMake(MAIN_WIDTH / 2, 220);
    appImageView.backgroundColor = [UIColor whiteColor];
    appImageView.image = [UIImage imageNamed:@"liushuizhang"];
    appImageView.layer.cornerRadius = 5;
    appImageView.layer.masksToBounds = YES;
    [self.view addSubview:appImageView];
    
    
    
    UILabel *appNameLabel = [[UILabel alloc]initWithFrame:CGRectMake(MAIN_WIDTH / 2 - 40, 330, 80, 40)];
    appNameLabel.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:appNameLabel];
    appNameLabel.text = @"流水账";
    appNameLabel.textAlignment = 1;
    appNameLabel.font = [UIFont systemFontOfSize:20];
    
    
    UILabel *detailLabel = [[UILabel alloc]initWithFrame:CGRectMake(MAIN_WIDTH / 2 - 110, 370, 220, 25)];
    
    detailLabel.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:detailLabel];
    detailLabel.text = @"AA记账神器,告别糊涂账";
    detailLabel.textAlignment = 1;
    detailLabel.textColor = [UIColor orangeColor];
    
    
    
    UILabel *developerLabel = [[UILabel alloc]initWithFrame:CGRectMake(MAIN_WIDTH / 2 - 140, 400, 280, 25)];
    developerLabel.backgroundColor = [UIColor whiteColor];
    developerLabel.textAlignment = 1;
    developerLabel.text = @"请联系我们: www.lidria@163.com";
    developerLabel.textColor = [UIColor orangeColor];
    [self.view addSubview:developerLabel];
    
    
    
    
    
    
    UIView *firstLineView = [[UIView alloc]initWithFrame:CGRectMake(0, 64, MAIN_WIDTH, 1)];
    firstLineView.backgroundColor = [UIColor lightGrayColor];
    [self.view addSubview:firstLineView];
    
//    UIView *secLineView = [[UIView alloc]initWithFrame:CGRectMake(0, 400, MAIN_WIDTH, 1)];
//    secLineView.backgroundColor = [UIColor lightGrayColor];
//    [self.view addSubview:secLineView];
    
    
//    UIView *thirdLineView = [[UIView alloc]initWithFrame:CGRectMake(0, 180, MAIN_WIDTH, 1)];
//    thirdLineView.backgroundColor = [UIColor lightGrayColor];
//    [self.view addSubview:thirdLineView];
    
    
    
    UILabel *editionLabel = [[UILabel alloc]initWithFrame:CGRectMake(MAIN_WIDTH / 2 - 70, MAIN_HEIGHT - 50, 140, 25)];
    editionLabel.backgroundColor = [UIColor whiteColor];
    editionLabel.textAlignment = 1;
    editionLabel.text = @"版本号:V1.0.0";
    [self.view addSubview:editionLabel];
    
    
    
}

- (void)clickBack:(UIButton *)button {
    [self dismissViewControllerAnimated:YES completion:^{
        
        
    }];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
